package com.woniuxy.auctionSystem.mapper;

import com.woniuxy.auctionSystem.entity.User;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

public interface UserMapper extends Mapper<User> {
    @Select("select count(*) from user where phone = #{phone}")
    Long isExitPhone(String phone);

    @Select("select * from user where username = #{loginName}")
    User selectUserByName(String loginName);

    @Select("select * from user where phone = #{phone}")
    User selectUserByPhone(String phone);
}